$(function () {
    var consultantInfoList = "${consultantInfoList}";
    var doctorDiagnosisInfo = "${doctorDiagnosisInfo}";
    if (consultantInfoList == "[]") {
        consultantInfoList = JSON.parse(consultantInfoList);
        if (consultantInfoList.length <= 0) {
            var img = '<div><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/consult.png" alt=""></div>';
            $("#consultantInfoTitle").html(img)
        }
    }
    if (doctorDiagnosisInfo == "[]") {
        doctorDiagnosisInfo = JSON.parse(doctorDiagnosisInfo);
        if (doctorDiagnosisInfo.length <= 0) {
            var img = '<div><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/medicalAdvice.png" alt=""></div>';
            $("#doctorDiagnosisInfoTitle").html(img)
        }
    }
    $(".showDetails").click(function () {
        $(this).parent().siblings().toggle();
        $(this).children().toggle();
    });
    subsequent = function (id) {
        var index = layer.open({
            type: 2,
            title: '复诊预约',
            area: ['70%', '95%'], //宽高
            fix: true, //不固定
            maxmin: true,
            content: Feng.ctxPath + '/doctorLooked/subsequent_info/' + id + '/2',
        });
        this.layerIndex = index;
    };
});